package com.sparrow.rpc.socket.msg.resp;

import com.sparrow.rpc.socket.msg.RpcCodecMsg;
import com.sparrow.rpc.socket.msg.RpcMsgType;
import java.io.Serializable;

public class RpcResponse implements RpcCodecMsg, Serializable {
    private static final long serialVersionUID = 1L;

    private long uuid;
    private Object result;
    private String error;

    public void setUuid(long uuid) {
        this.uuid = uuid;
    }

    public long getUuid() {
        return uuid;
    }

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    @Override
    public int getType() {
        return RpcMsgType.RPC_RESP.getTypeId();
    }

}
